﻿using System;
using System.IO;

namespace Dimebrain.TweetSharp.Core.Web
{
    public class OpenReadCompletedEventArgs : EventArgs
    {
        public Stream Result
        {
            get; private set;
        }

        public object UserState
        {
            get; private set;
        }

        public OpenReadCompletedEventArgs()
            : this(null, null)
        {

        }

        public OpenReadCompletedEventArgs(object userState)
            : this(null, userState)
        {

        }

        public OpenReadCompletedEventArgs(Stream result) : this(result, null)
        {
            
        }

        public OpenReadCompletedEventArgs(Stream result, object userState)
        {
            Result = result;
            UserState = userState;
        }
    }
}
